package com.anin.demoipastrict;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class testController{

    @RequestMapping("/{name}")
    public String test(HttpServletRequest request,@PathVariable String name){
        return "hello!"+name;
    }
}
